export const formList = ref([
	{
		title: '基础信息',
		formList: [
			{
				label: '客户名称',
				prop: 'partyName',
				type: 'input',
				attrs: {
					maxlength: 50,
				},
				rules: [
					{ required: true, message: '客户名称不能为空', trigger: 'blur' },
				],
			},
			{
				label: '客户类型',
				prop: 'customerSpecificType',
				type: 'radio',
				rules: [{ required: true, message: '请选择', trigger: 'change' }],
				options: [
					{
						label: '国网',
						value: '国网',
					},
					{
						label: '政府单位',
						value: '政府单位',
					},
					{
						label: '民营企业',
						value: '民营企业',
					},
					{
						label: '个人客户',
						value: '个人客户',
					},
					{
						label: '其他',
						value: '其他',
					},
				],
			},
			{
				label: '客户级别',
				prop: 'customerLevel',
				type: 'radio',
				rules: [{ required: true, message: '请选择', trigger: 'change' }],

				options: [
					{
						label: '一般',
						value: '一般',
					},
					{
						label: '重要',
						value: '重要',
					},
				],
			},
			{
				label: '客户来源',
				prop: 'customerSource',
				type: 'radio',
				rules: [{ required: true, message: '请选择', trigger: 'change' }],

				options: [
					{
						label: '自开拓',
						value: '自开拓',
					},
					{
						label: '公司委派',
						value: '公司委派',
					},
				],
			},
			{
				label: '客户地址',
				prop: 'address',
				type: 'input',
				attrs: { placeholder: '请输入客户地址' },
				rules: [{ required: true, message: '请输入客户地址', trigger: 'blur' }],
			},
			{
				label: '网址',
				prop: 'website',
				type: 'input',
				rules: [
					{
						pattern:
							/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/,
						message: '网址格式错误',
						trigger: 'blur',
					},
				],
			},

			{
				label: '电话',
				prop: 'phone',
				type: 'input',
				attrs: {},
				rules: [
					{
						pattern: /^1[3-9]\d{9}$/,
						message: '手机号格式错误',
						trigger: 'blur',
					},
				],
			},
		],
	},

	{
		title: '财务信息',
		formList: [
			{
				label: '开票抬头',
				prop: 'invoiceTitle',
				type: 'input',
				attrs: { placeholder: '请输入' },
			},
			{
				label: '纳税识别号',
				prop: 'taxId',
				type: 'input',
				attrs: { placeholder: '请输入' },
			},
			{
				label: '开户银行',
				prop: 'bankName',
				type: 'input',
				attrs: { placeholder: '请输入' },
			},
			{
				label: '开户账户',
				prop: 'bankAccountNumber',
				type: 'input',
				attrs: { placeholder: '请输入', type: 'number' },
			},
			{
				label: '开票地址',
				prop: 'invoiceAddress',
				type: 'input',
				attrs: { placeholder: '请输入' },
			},
		],
	},
	{
		title: '系统管理',
		formList: [
			{
				label: '管理者',
				prop: 'managerId',
				type: 'slot',
				attrs: { placeholder: '请输入' },
			},
			{
				label: '创建人',
				prop: 'createdBy',
				type: 'input',
				attrs: { placeholder: '请输入', disabled: true },
			},
		],
	},
])
export const formList2 = ref([
	{
		title: '基础信息',
		formList: [
			{
				label: '姓名',
				prop: 'name',
				type: 'input',
				attrs: { placeholder: '请输入', maxlength: 10 },
				rules: [
					{ required: true, message: '姓名不能为空', trigger: 'blur' },
					{ max: 10, message: '姓名不能超过10个字', trigger: 'blur' },
				],
			},
			{
				label: '归属客户',
				prop: 'partyId',
				type: 'select',
				attrs: { placeholder: '请选择' },
				options: [],
				rules: [
					{ required: true, message: '客户名称不能为空', trigger: 'change' },
				],
			},
			{
				label: '部门',
				prop: 'department',
				type: 'input',
				attrs: { placeholder: '请输入' },
			},
			{
				label: '职务',
				prop: 'position',
				type: 'input',
				attrs: { placeholder: '请输入' },
			},
			{
				label: '性别',
				prop: 'gender',
				type: 'select',
				attrs: { placeholder: '请选择' },
				options: [
					{
						label: '男',
						value: 'MALE',
					},
					{
						label: '女',
						value: 'FEMALE',
					},
				],
			},
			{
				label: '关键决策人',
				prop: 'isDecisionMaker',
				type: 'select',
				options: [
					{ label: '是', value: 1 },
					{ label: '否', value: 0 },
					{ label: '未知', value: 2 },
				],
				attrs: { placeholder: '请选择' },
			},
			{
				label: '常用地址',
				prop: 'address',
				type: 'input',
				attrs: { placeholder: '请输入常用地址' },
				rules: [{ required: true, message: '请输入常用地址', trigger: 'blur' }],
			},
			{
				label: '微信号',
				prop: 'wechat',
				type: 'input',
				attrs: { placeholder: '请输入' },
				rules: [
					{ required: true, message: '请输入', trigger: 'blur' },
					{
						pattern: /^[a-zA-Z]([-_a-zA-Z0-9]{5,19})+$/,
						message: '微信号格式错误',
						trigger: 'blur',
					},
				],
			},
			{
				label: '常用手机',
				prop: 'mobile',
				type: 'input',
				attrs: { placeholder: '请输入' },
				rules: [
					{ required: true, message: '手机号格式错误', trigger: 'blur' },
					{
						pattern: /^1[3-9]\d{9}$/,
						message: '手机号格式错误',
						trigger: 'blur',
					},
				],
			},
			{
				label: '备用手机',
				prop: 'mobileBackup',
				type: 'input',
				attrs: { placeholder: '请输入' },
				rules: [
					{
						pattern: /^1[3-9]\d{9}$/,
						message: '手机号格式错误',
						trigger: 'blur',
					},
				],
			},
			{
				label: 'E-mail',
				prop: 'email',
				type: 'input',
				attrs: { placeholder: '请输入' },
			},
		],
	},
	{
		title: '',
		formList: [
			{
				label: '名片',
				prop: 'businessCardUrl',
				type: 'upload',
				attrs: { tip: '支持jpg、gif、png等格式的图片.' },
			},
		],
	},
	{
		title: '系统信息',
		formList: [
			{
				label: '管理者',
				prop: 'managerId',
				type: 'slot',
				attrs: { placeholder: '请输入' },
			},
			{
				label: '创建人',
				prop: 'createdBy',
				type: 'input',
				attrs: { placeholder: '请输入', disabled: true },
			},
		],
	},
])
